﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LiveSequence.Common.Domain;
using LiveSequence.Interface;
using LiveSequence.Suite.Domain;

namespace LiveSequence.Suite.Documents
{
  public class SeqDiagramDoc : BaseDoc
  {


    public SeqDiagramDoc(LSMethodCallDiagram diagram)
    {
      Diagram = diagram;
      Title = diagram.Title;
    }

    public LSMethodCallDiagram Diagram
    {
      get; set;
    }

    public void SetData(MethodData methodData, 
                        SequenceData seqData)
    {
      Diagram.SequenceData = seqData;
      Diagram.MethodData = methodData;

      OnUpdateAllViews(null, null);
    }
  }
}
